<%@page import="cn.school.mybatis.pojo.Admin"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
   
<%
	//out.print(session.getId());
    Admin _name=(Admin)session.getAttribute("USER_LOGIN");
	if(_name==null){
		//response.sendRedirect("userLogin.jsp");//   
		out.print("<script>alert('您还没有登录,不能访问');location.replace('"+request.getContextPath()+"/pages/userLogin.jsp');</script>");
		return;
	}
%>
<h1 style="font-size:120px;color:red;"><%=_name.getName()%>,欢迎你的到来!<a href="logout.jsp">退出</a> </h1>